package ai.peanut.cloudoneb.controller;

import ai.peanut.cloudonea.feignserver.feignImpl.IOrderFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

@RestController
public class MemberController {
   @Autowired
   private IOrderFeignService iOrderFeignService ;

    @GetMapping("/member/{id}")
    public Map findOrderById(@PathVariable Long id) {
        Map a = new HashMap() ;
        a.put("member","member") ;
        return a;
    }


    @GetMapping("/member/toGetOneaFeign")
    public Map toGetOneaFeign() {
        return iOrderFeignService.findFeignOne() ;
    }
}
